package oop.multiform.geometric;

import oop.multiform.Running.TestRunning;

public class TestGeometric {

    public boolean equalsArea(GeometricObject geo1,GeometricObject geo2){
        boolean b = false;
        System.out.println("geo1:"+geo1.getArea());
        System.out.println("geo2:"+geo2.getArea());
        if(geo1.getArea() == geo2.getArea()){
            return true;
        }
        return b;
    }

    public static void main(String[] args) {

        Circle circle = new Circle("red", 1, 2);

        MyRectangle rectangle = new MyRectangle("red", 1, 4, Math.PI);

        TestGeometric testGeometric = new TestGeometric();
        System.out.println(testGeometric.equalsArea(circle, rectangle));

    }
}
